package su.msk.jet.team01.chatik.server.commands;

import su.msk.jet.team01.chatik.server.data.Client;

public class HelpCommand extends Command {

	private static final String CLIENT_INFO_MSG_HELP = "Online Commands Help:\n"
			+ "/help - print this help\n"
			+ "/name <name> - get <name>\n"
			+ "/room <room> - enter the <room>\n"
			+ "/rooms - show available rooms\n"
			+ "/private <user> <message> - send private <message> to <user>\n"
			+ "/history [date] - show user's private history days/on [date]\n"
			+ "/bye - close the connection";

	public HelpCommand() {
		super("help", 0);
	}

	@Override
	public void doExecute(final Client client, final String[] args) {
		client.send(CLIENT_INFO_MSG_HELP);
	}

}
